package com.xch.sboot.service.user.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author xch
 * 2022/12/14 14:46
 */

@Data
@NoArgsConstructor
@ApiModel(description = "注册DTO")
public class SignUpDTO {

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty("昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty("邮箱")
    @NotBlank(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty("加密后的密码串")
    @NotBlank(message = "密码不能为空")
    private String passwordStr;


}
